package org.pork.util;

import java.util.Random;

public class RandomNaming {
	
	public String naming(String extension){
		
		 Random random = new Random();
         
         long currentTime = System.currentTimeMillis();
         int randomValue = random.nextInt(50);
         String newName = Long.toString(currentTime) + "_"
        		 + Integer.toString(randomValue) + "." + extension ;
  
		return newName;
	}
}
